package com.lantu.wisdom.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

import io.swagger.models.auth.In;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author zch
 * @since 2021-06-15
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("w_user")
public class WUser extends Model<WUser> {

    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 用户id
     */
    @TableField("user_id")
    private String userId;

    /**
     * 姓名
     */
    @TableField("name")
    private String name;

    @TableField("head")
    private String head;

    /**
     * 电话号码
     */
    @TableField("phone")
    private String phone;

    /**
     * 小程序id
     */
    @TableField("open_id")
    private String openId;

    /**
     * 性别
     */
    @TableField("sex")
    private Integer sex;


    /**
     * 次数
     */
    @TableField("num")
    private Integer num;

    /**
     * 邀请人
     */
    @TableField("from_by")
    private String fromBy;

    @TableField("deleted")
    private Boolean deleted;

    @TableField("create_time")
    private Long createTime;

    @TableField("update_time")
    private Long updateTime;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
